package dsk.demo.product.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import dsk.demo.product.dto.SupplierProductQueryDto;
import dsk.demo.product.entity.SupplierProductRefEntity;
import dsk.demo.product.vo.SupplierProductVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SupplierProductRefDao extends BaseMapper<SupplierProductRefEntity> {
    IPage<SupplierProductVo> querySupplierProductPage(Page<SupplierProductVo> page, SupplierProductQueryDto queryDto);

    void insertBatch(@Param("collect") List<SupplierProductRefEntity> productEntities);
}
